<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Merge 3 strings into one</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.xdiff-string-merge3" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">xdiff_string_merge3</h1>
  <p class="verinfo">(PECL xdiff &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">xdiff_string_merge3</span> &mdash; <span class="dc-title">Merge 3 strings into one</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.xdiff-string-merge3-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>xdiff_string_merge3</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$old_data</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$new_data1</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$new_data2</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter reference">&$error</code></span>
  ] ) : <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span></div>

  <p class="para rdfs-comment">
   Merges three strings into one and returns the result.
   The <code class="parameter">old_data</code> is an original version of data 
   while <code class="parameter">new_data1</code> and <code class="parameter">new_data2</code> are modified 
   versions of an original. An optional <code class="parameter">error</code> is used to pass any
   rejected parts during merging process.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xdiff-string-merge3-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">old_data</code></dt>

     <dd>

      <p class="para">
       First string with data. It acts as &quot;old&quot; data.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">new_data1</code></dt>

     <dd>

      <p class="para">
       Second string with data. It acts as modified version of <code class="parameter">old_data</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">new_data2</code></dt>

     <dd>

      <p class="para">
       Third string with data. It acts as modified version of <code class="parameter">old_data</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">error</code></dt>

     <dd>

      <p class="para">
       If provided then rejected parts are stored inside this variable.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.xdiff-string-merge3-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the merged string, <strong><code>FALSE</code></strong> if an internal error happened, or <strong><code>TRUE</code></strong>
   if merged string is empty.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.xdiff-string-merge3-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="xdiff_file_merge3.html" class="function" rel="rdfs-seeAlso">xdiff_file_merge3()</a> - Merge 3 files into one</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>